#include <stdio.h>

int main(void)
{
	FILE* fp=fopen("hello.txt","w");
	if(fp==NULL)
	{
		perror("fopen()failed");
		return 1;
	}

	fprintf( fp,"Hello world\n");

	fclose(fp);
        return 0;
}